package a66weding.com.jiehuntong.widgets.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

import a66weding.com.jiehuntong.R;

/**
 * @version :
 * @creator : AxDu
 * @create-time : 2016/8/18
 * @description :
 */
public class MyDialog extends Dialog {

    private String title;
    public MyDialog(Context context, String title) {
        super(context);
        this.title = title;
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //设置不显示对话框标题栏
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        //设置对话框显示哪个布局文件
        setContentView(R.layout.pop_tocollect);

        TextView titleTv= (TextView) findViewById(R.id.title);
        titleTv.setText(title);
    }

}
